package com.rong.creatmodel.factorymodel.abstract_factory;

public class Client {
    public static void main(String[] args) {
        // 创建意大利风味甜品工厂
        ItalyDessertFactory italyDessertFactory = new ItalyDessertFactory();
//        MeishiDessertFactory meishiDessertFactory = new MeishiDessertFactory();
        Dessert dessert = italyDessertFactory.createDessert();
        Coffee coffee = italyDessertFactory.createCoffee();
        System.out.println(coffee.getName());
        dessert.show();
    }
}
